Log an error if content sanatization fails

before the error was just hidden now it is logged when he sanatization
of the content fails, this is especially important for JSON since it
needs to be parseable to be returned by canned otherwise just false is
returned

RESOLVES #4
Merge pull request #21 from sideshowcoder/error-messages-for-input-files

Log an error if content sanatization fails