encode urls being used as parameters