Added simple 'cleanString' function to remove byteorder marks, fixed build so compile depends on generate