I think this should actually be `uri.normalize!` without an assigment. `uri.normlaize` returns nil sometimes.