private static function _extractBytes($byteString, $start, $length) {
        if (function_exists('mb_substr')) {
            return mb_substr($byteString, $start, $length, '8bit');
        }
        return substr($byteString, $start, $length);
    }