Support for usernames with special characters

If usernames has special characters it would fail, now with UTF-8 encoding, it works. From support ticket #180262