Fixed regular expression for encoding/decoding have space between media type and charset