static public function ASCII2Visible($char, $replace='.')
    {
        $c = ord($char);
        if ($c >= 0x20 && $c <= 0x7F) {
            return $char;
        } else {
            return $replace;
        }
    }