Encode subject properly so that foreign characters are transmitted properly