Fix for convert_str to handle lists and json files