fix problem with encoding fixes #52