Fixed issue where spaces in username caused problems

Fixed #78