Fixed encoding for lists with apostrophes in their names.