public static function opaqueFixedString($xdr, $length)
    {
        $bytes = static::opaqueFixed($xdr, $length);

        // remove trailing nulls
        return strval(rtrim($bytes, "\0x00"));
    }