Make decode_string_to_file the same across plugins