fix pull event rake task (encoding stuff)