Minor tweak to url parsing