Make dialog-filename strings breakable

This is for #3382. I found several other cases that need the same fix.