Convert to C string inside WriteOutputFile
Choose target features
auto merge of #5996 : sanxiyn/rust/target-feature, r=graydon

Fix #1879.