Strip forbidden chars + general cleanup. Fixes #66.