Tools for manipulating urls