ui/vnc-enc-tight: remove switch and have single return