fixed some mime encoding issues