Alternative to @alvesh88's #67 but rebased (diff is the same, commits are similar). @alvesh88, @frlan, tell me if you're fine with that.
Fix bug 3557458 -- when encrypting selected text a 0 byte gets added …
…to the text that's being encrypted
Fixed compiler warnings
I didn't see anything bad. The -Wunused I already fixed in master ;)