Fix Pica encoding problems

fixes #211