Corrected XPath expression for root dirs with special chars (refs #2786)
Fixed erroneous sprintf() (refs #2786)
Disallow creation of contexts with unsupported chars in their path (refs #2786)
Merge pull request #70 from eguaj/1.4-A2786

1.4 a2786