682 report error on inline unencoded attachment

This fixes #682 - when you forget to base64 encode your attachment you get error report and not internal pouch error.

This code is on top of PR #678.