Add auto-detection of swapped BOM. Make utfNN_to_utfMM conversions
take iterators in signature rather than pointers. Code is the same.