strip out extra slashes added by PHP

see https://github.com/GigaOM/legacy-pro/issues/4747