Translating characters out to binary and back again