Reconfinement of highly magnetized jets: implications for HST-1 in M87