Periodic reminder:
"Strings in Swift are Unicode correct"
It is not possible to have a String that is not valid Unicode, and so it is not possible for a String to fail UTF-8 conversion.
So there is no reason to use the failable `string.data(using: .utf8)!` that Swift bridges from NSString.
You can just use `Data(string.utf8)` and avoid the Optional.
In many cases, String(decoding:as:) is also a better choice than String(data:encoding:), but that depends on your use case a little.
