Improve exceptions and repr

- More explicit exceptions
- Change repr format to use ascii only