Now explicitly casting all input variables to strings to handle multi-word and strange characters better
Fixed file permissions