fix two cases of broken String#% calls