Mostly move parts of the gdb related quoting to dumper.py, also split function calls in strings into separate arguments.