Fix the 'copy button' in the protocol log

Fix #863

Also added more padding for the filename because it might be big, and in
case it's not enough, always add at least a space.