Try unsetting it instead?
unset XMODIFIERS
Refer Compatibility with CJKV input method frameworks for some general info regarding input methods and snaps.
Most of the graphical interface frameworks rely on the following environment variables for input method support:
XMODIFIERS
GTK_IM_MODULE
QT_IM_MODULE
QT4_IM_MODULE
CLUTTER_IM_MODULE