Fix invalid urls generated by _url