Release v0.9

Clean-up the library and fix encoding problem.