Quote usernames in case they have weird characters (based on a pull request by tmikoss)