user: Correct buffer overflows in IME processing code.