SECURITY-830 add Locale parameter to String.toLowerCase and toUpperCase calls

JIRA: https://issues.jboss.org/browse/SECURITY-830