Added escaping for special characters in username