Fixed 502 error when data contains boolean

now every field is converted to toString() before sanitizing.