Fixes a bug with accented char usernames in Register API