fix url characters to be acceptable