Hoist the code for checking whether or not iconv actually works up into the