dex2oat: Avoid extra std::string copy am: f276f957e5
am: 72eef6bbb5

Change-Id: I5417cd4c01e354d48c29b9e29e90f61c2d8f76c5