Fixed error reading file contents as strings