code: public static String normalizeMultiByteString(String content){
  		
  		StringBuilder sContent = new StringBuilder();
  
  		final int BACKSLASH = 0x5c;
  		for (int i = 0; i < content.length(); i++) {
  			final int code = content.codePointAt(i);
  			if (code < 0x80) {
  				// We leave only ASCII unchanged.
  				if (code == BACKSLASH) {
  					// escape backslash
  					sContent.append("\\");
  				}
  				sContent.append(content.charAt(i));
  			} else {
  				sContent.append(String.format("\\u%04x", code));
  			}
  		}
  		
  		return sContent.toString();
  	}
docs: *
  Normalize multibyte string for JRuby
  
  Non-ASCII String may cause invalid multibyte char (US-ASCII) error with Ruby 1.9
  because Ruby 1.9 expects you to use ASCII characters in your source code.
  Instead we use Unicode code point representation which is usable with Ruby 1.9 and later.
  Inspired from http://www.stefanwille.com/2010/08/ruby-on-rails-fix-for-invalid-multibyte-char-us-ascii/
  
  Original code from
  
  @param content the content to fixed
  @return the normalized content