restore fdToHandle' to avoid breaking clients (#1109)