LATIN1 --> UTF8
TABS --> SOFT TABS
PREG REPLACE: (\$[a-z_]*?)\{([0-9]*)\} --> substr($1, $2, 1)
mysql_set_charset("latin1" --> mysql_set_charset("utf8"