treat UChar.Out_of_range as CharEncoding.Out_of_range when encoding

Camomile seems to sometimes raise the former in place of the latter.