fix potential issue encoding in the title