small problem with url being escaped incorrectly