fix the local test encoding problem