Fix urlnorm normalize for python 3

Don't assume the string is bytes