Use encoding for which string view to use: UTF8, UTF16, CharacterView, UnicodescalarView. https://github.com/kareman/FileSmith/blob/master/Sources/Stream.swift#L65