fixing issues with file name without c string, adding converter to binary file