tracing this encoding bug..