fix encoding issue in test