Encode before quoting