Fix for Issue #29

Here's my fix for Issue #29. I'm working under Windows right now, so I couldn't create an expresso test case. I hope you'll forgive the nodeunit test case, but it demonstrates the issue and fix. Cheers!