First pass at moddleware to reject invalid UTF-8