If you encrypt your data to a binary string, it can no longer be stored in an UTF8 encoded string, since some binary values/sequences are just not valid UTF8.
Just base64 encode your string (or change the column type to a binary type) before storing it and things should work better.