Fix bad unicode handling

Fix for https://github.com/bigboringsystem/bigboringsystem/issues/17