Improves sanitizing featured image string.

Fixes #2157