#203 throwing exception if encode tag error