fix test suite for coffeescript 1.7+
fix object being passed to is_encoded, closes #126