Fix string bug, which must have risen when we migrated to webapp2. Closes #229