Fix userinfo encoding and decoding.