now returning byte array instead of String for file contents to be able to handle non-String files