@JRubyMethod(module = true, visibility = Visibility.PRIVATE)
public static IRubyObject ruby_string_to_bytes(IRubyObject recv, IRubyObject string) {
Ruby runtime = recv.getRuntime();
if (!(string instanceof RubyString)) {
throw runtime.newTypeError(string, runtime.getString());
}
return JavaUtil.convertJavaToUsableRubyObject(runtime, ((RubyString)string).getBytes());
}
@JRubyMethod(module = true)