Changed script encoding to utf8
Changed bug where we did local matching only