Fix UTF-8 usernames when creating user. Fixes #312.