fix: update `detect_filetype` for JSONs with text/plain MIME type (#520)
* check to see if text file is a json
* add json check into filetype detection
* added test for updated file detection logic
* bytes/strings handling
* changlog and version bump