Don't truncate log messages unless they contain binary data (removes pre...

...vious log limit of 300 characters)

Adapted from https://github.com/dwarburt/SQLITE-Browser/commit/c4d253287faab37e8a749932c6c988aad4735cd5