private static String newStringFromUTF8(byte[] buf) { return RubyEncoding.decodeUTF8(buf); }
private static String newStringFromUTF8(byte[] buf, int offset, int len) { return RubyEncoding.decodeUTF8(buf, offset, len); }