Let encoding function be dynamically selected during read_IM_cin() calls.