Fix global vars + Set file encoding to utf-8 + Style error pages