Escape illegal characters