fix encoding problem in test