class StringUtil {

	public static String escape(String original) {
		if (original != null) {
			return original.replace("\\", "\\\\").replace("\r", "\\r").replace("\n", "\\n");
		} else {
			return null;
		}
	}

}