public function escapeParam($string)
    {
        foreach ([ "\r\n", "\r", "\n" ] as $badBytes) {
            if (false !== strpos($string, $badBytes)) {
                $string = str_replace($badBytes, " ", $string);
            }
        }

        if (false !== strpos($string, "\0")) {
            $string = str_replace("\0", "", $string);
        }

        return $string;
    }