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>
Merge pull request #4 from piyo/non-unibyte-title

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