Fix error caused by reading argument as a string, not char[]