Sanitize client submitted values so that they are handled correctly by the server side javascript.