Horrible shell escaping hackery.  I feel bad.