Initial working version of xor_str function, refactored for Python 3.
Moved unicode decoding back into hex_str_to_base64 function.