Fix for Flask 0.10

Otherwise it throws a unicode error