picking out the special cases UTF7 and JP-2