Titles with non-unibyte characters are properly encoded and inserted.

No more octal garbled text.
Includes a smart quote test case and Japanese text test case.

Signed-off-by: piyo <piyo@users.sf.net>