Updated support for content-type

and fixed encoding errors.
updated readme