Simplified supidly complex encoding handler