Fix escaping in dynamicscript example

[closes #1474]