add default attachment encoding if not specified in content type (fixes #37)