Finish porting String#scrub for speed and compat.