Fixed issue #1

I've made fixes for usernames with spaces, hyphens and dots.
Possibly there are weirder names that I will take care of later.