Throw on unknown charset option

fixes #789