Merge #11555 as_string doc fix from 3.1.