Fix executable permissions and fix unicode issue with strftime