Fix issue where '.' could exist in a document key which mongo does not allow

Add sanitize on logging of calls and make sure that on display of history that the '.' shows instead of the HTML code.