GM_log truncates at NULL byte
Merge pull request #1987 from janekptacijarabaci/GM_log_null-byte

GM_log truncates at NULL byte

Fixes #1061