restore 8bit support in input entry (cherry picked from commit 8551dd99cc6ad29b1b356acc4f4c92209ed98eed)