Fixed #2388: String#b improperly updates encoding of source string.