fixed encoding issue in build tasks