private static byte[] getBytesInUTF8(String s) { return RubyEncoding.encodeUTF8(s); }
public static String getHashForString(String str) { return getHashForBytes(RubyEncoding.encodeUTF8(str)); }