Made web escaping of / character optional

Added an optional flag to serialize so that the '/' character is not escaped, as this is optional and sometimes not desirable.