fix encoding problem. Replace eval with locals().