public static String toUnixNewline(String input){
  return input.replace("\r\n","\n");
}

public static String toUnixNewline ( String input ) { return input . replace ( "\r\n" , "\n" ) ; }
enforces unix newlines on the given string .
