Fix strswab() to reliably find end of string