encodings: Fix detection of non-UTF-8 inline encodings