I was seeing a bug that was very similar to what you describe! I fixed it on my Mac by deleting the .CFUserTextEncoding file in my home directory.