rtrim content from file_get_contents to avoid \n at end of files.