Fix JSON middleware to recognize Content-Type that specifies a charset (e.g. "application/json; charset=UTF-8")