Fixed RFC 5849 compliance issue. Now only encoded characters are converted to uppercase. Not sure if this is the most ideal solution.