Set encoding for tests files
Fix #544 with any: 'distinct'