protected function convert($value) { // Remove non-printable characters return preg_replace('([\\x00-\\x09\\x0B\\x0C\\x1E\\x1F]+)', '', (string) $value); }