Missing base64 encoding when generating signature

`JsonWebSignature` needs to be encoded with base64.  Verify it with http://jwt.io/ 
Sorry for not catching this the first time.