Fixed issues with locale and proxy servers