Raise an exception for invalid UTF-8

Same issue as the one logged in this ticket: https://jira.mongodb.org/browse/RUBY-779
We should see if to_utf8_binary is now a candidate for C and Java extensions.