encode the headers of frames longer than 125 characters correctly