Significantly improved username parsing.