single-character XOR Cipher function and tests