Fixed character encoding bug. Fixes #65