[#39768687] Fixes internationalization of login pages

- Avoided non-ascii characters with unicode escapes
- Added language detection from Accept-language headers