Fixed another encoding related crash.