Avoid calling qprint:encode on non-string data

We need to used bas64 encoding even for text attachments that
come from a non-string source.

Signed-off-by: Utz-Uwe Haus <lisp@uuhaus.de>