stopped the error
now works with all but UTF-7 and ISO_2022_JP_2