Char#to_s works with multibyte chars. Fix String#replace, String#delete and String#each_char to work with multibyte characters.