websockets.jl: tweak the code for base64 encoding.
websockets.jl: factor hex string to byte array conversion into a function.