fixed tips encoding bug