Fix python3 unicode bug when hashing user directory name

Transform 'get_username' unicode string to bytes upon hashing it to generate hased user directory name, then append that to path.