logger: ensure than Logger.exception argument is a string, not the actual exception. closes #825