Weird bug with unicode and SQLAlchemy