proper encoding in test for py30