Fix urlsafe_base64_decode on python3

Make `urlsafe_base64_encode` and `urlsafe_base64_decode` round-trip on python3 as well as python2.