Escape URI for javascript