fix spelling, usage, and encoding errors