closes #89 - bug fix- mixing up encoding types is not a good idea!