Filter out invalid UTF-8 entities

Refs #9436