When multibyte flag is on, exit condition is `p >= end'. OTOH, when off, it's `p > end'. I think that the later is right, and fix the former.