RUBY-646 additional changes that would probably be good

We already call `String#check_for_illegal_characters!` in `#to_bson_cstring` and I added a test for the fix I made in the previous pull request.