convert to UTF.
regression fix: script file contents not being read using UTF-8 so were not appearing correctly in the scripts reader.
added some javadoc.