Apostrophes must be replaced by a separator instead of being removed

For instance :
"a cat’s toys" should give
"a-cat-s-toys"
In latin language this is really critical, for instance :
"une œuvre d’art" should give
"une-oeuvre-d-art" and never "une-oeuvre-dart" which means nothing.