check charset in content-type and use if supported

closes #21