D365FO: Update through OData throws error when there is a wild card character in data.

We are updating item information in D365FO through OData using entity EcoResReleasedProductV2. When we perform update for any item which has a '/' or '#' in the item id, the response is: No HTTP resource was found that matches the request URI '<URL>/data/EcoResReleasedProductV2(ItemNumber='35/45',dataAreaId='USMF')?cross-company=true'). No route data was found for this request. If we update any item which doesn't have those 2 characters, it works fine. It throws error only when these characters are included in the index fields of the entity, as those fields are passed in the URL. How to resolve this issue?