Reset successes to ensure all three requirements satisfied

Not sure if this is correct, but it seems to work this way.

Also fixed encoding.
Merge pull request #3 from Tyilo/patch-1

Reset successes to ensure all three requirements satisfied