Fixed problems with corrupted characters. Issue #2.