Make uids valid for use in URLs