safer encoding and prevent mem issues
bump version