Properly encode strings as parameters.