P3K: fix DeprecationWarning under Python 3.x (base64.encodestring is deprecated)
Merge pull request #2778 from kmike/p3k-deprecations

P3K: fix DeprecationWarning under Python 3.x