Refactored self hosting to support escaping of forward slash.