Added encoding line to example scripts copied from docs.