Fixed issue in generate and writeshed

Server was adding slashes among other issues.