Correctly set all variables and utf-8 encoding