use encodebytes instead of encodestring (#2483)
Merge pull request #2 from piotrbulinski/develop

use encodebytes instead of encodestring (#2483)