Change input buffer to use regular C string