callback encoding with special chars problem