encodeURIComponent apostrophe

I’ve just learnt the encodeURIComponent doesn’t encode an apostrophe. Can’t understand how this hasn’t been a problem for me earlier but what’s the go with saving text into sql field that contains an (’)

This function is part of the JavaScript specification. The following characters are not escaped:

A-Z a-z 0-9 - _ . ! ~ * ' ( )

Full docs on this function are here: