Datagrid Filter Error When ' (single quote) Included in Search String

I stumbled upon a minor issue in v2.42.8: While typing a search string into a data grid filter I found that the ' character (single quote/apostrophe) produces an odata error:

The query specified in the URI is not valid. There is an unterminated string literal at position 21 in 'contains(Symbol, ''')'.

The actual request is similar to this:

http://localhost:5000/odata/Datasourcename/Tablename?$filter=contains(Fieldname,%20%27sometext%27moretext%27)

It appears the single quote is properly encoded, but I think odata requires the character to be escaped which I guess can be accomplished by duplicating it within the string like so:

http://localhost:5000/odata/Datasourcename/Tablename?$filter=contains(Fieldname,%20%27sometext%27%27moretext%27)