fix browser call on MAC OSX, fix watch not working on MAC OSX, set
default encoding to utf-8