fix encoding crash.