Raise an exception for invalid UTF-8

This needs to be cleaned up still, but it works...

Same issue as the one logged in this ticket: https://jira.mongodb.org/browse/RUBY-779