TRUNK-3142: Fixed build for Oracle JDK 1.7 which is more permissive about locales