io: fix empty string skipping code