Make BibTeX also accept an encoding parameter.

Fixes #25.
fix setup.py so it can be called from anywhere