Fix for Unicode-objects must be encoded before decryption exception

Closes-Bug# 1328993

Change-Id: I8218b120368e7fc700b48464ab66e5f2a6211cb8