Fix build and handling of string inputs starting with a dash

Fixes #176.

Created by  Eelco Dolstra  on August 13, 2014
7GKAIP3VYKM4MGGHOGBB3DR2M6B6SENBR5IZQVJYO65AWT4BW7LAC
Change contents