Sanitizer handles invalid utf-8 characters gracefully