updated force_unicode to be compatible with 2 and 3