RFC 5545 line folding and 6868 encoding

Implemented line folding as described in RFC 5545, where lines longer
than 75 characters are cut after the 75th character and appended with a
carriage return / line feed ("\r\n"), as well as an unfolding
function. Also implemented RFC 6868 special character encoding /
decoding.