Fix bugs caused by implicitly using the default locale in Java.

This addresses several cases (identified by Android lint) where we
implicitly used the default locale while formatting a string or calling
toLowerCase(). These operations would give different result depending on
the user's settings, which is not what we want, except when formatting
text for display.

Bugs fixed:
 * The JellyBeanAccessibilityInjector now works in Arabic. Previously,
   it used String.format() to create JavaScript statements... but in
   Arabic the formatted numbers were invalid JavaScript.
 * Percentages are now formatted correctly in Turkish and Farsi in the
   Bandwidth Reduction settings menu.
 * Several other minor fixes in tests

BUG=316522

Review URL: https://codereview.chromium.org/173143003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252404 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252404