pithos: Fix group issues

* Fix encoding issues
* Provide the appropriate tests