strip bad characters from cg input

also update dependencies and bump version