This patch adds back compat for the buggy behavior with version.
It is gross because there were many public static methods exposed, but for example Solr is using these.
Simon, are you applying patches with Eclipse?
If so it will not work, you need to open the patch in an editor, select all, copy, and then apply from Clipboard.
In your patch, the test is corrupted, the characters should be chinese... I think this is why you were confused about tests before.
edit: sorry simon, mime-type/charset issues on my side, x-diff versus x-patch thing