Fixed JSON and others content-type detection and handling in schema validation

Content-type header was not handling content-types like:

```
application/json;charset=UTF-8
```