Provide backup utf8 sanitizer when UConverter is unavailable

Summary: UConverter is PHP >= 5.5, which folks may not have
Provide a basic UTF-8 validator implementation to passthrough
valid sequences and transform all others to
U+FFFD REPLACEMENT CHARACTER

Closes #3307

Reviewed By: @LiraNuna

Differential Revision: D1465029