Escape out chars that confuse javascript