fix buf, multiple encoding error when :helptags