Iga Swiatek has continued her winning streak with a second-round victory at the US Open which proved harder work than expected.