encode extra chars as bytes in window