spec/cucumber/formatter/junit_spec.rb
 exchanged usage of File to StrinIO and optimized testing of the string with more control chars and only one rule to match them

spec/cucumber/formatter/junit_spec.rb
 optimized the scan call not to include all space chars since it was also matching \f which can cause problems