openhatch/oh-mainline — pull request #41 by paulproteus (2012-06-21 00:27:16+00:00)
Title: Stop calling str() when we expect we might emit Unicode

This just changes some training missions to call utf8() rather than str().

The default encoding for str() is ASCII, so sometimes if we were passed Unicode strings, calling str() on them could cause a crash. This is defensive programming so that we know we act validly in the case that we're passed Unicode input.

The tests still pass with this change.