fixed title encoding bug