fix infinite loop when header value contains multibyte-char (degrade in 56975cd (2014/11/02))