Fix typos and source file encoding