Fix profile URLs for non-alphanumeric usernames

r?
91562f1187f628fcde8a338a0d3ff0285611790e