Fix String#to_const.