Reset an entire range instead of trying to reset flags

This fixes URLs being split in half by formatting characters