Allow setting truncate length through `globalOptions.maxMessageLength`, closes #244