prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  'ascii' codec can't decode byte 0xc3
  ```
  2016-08-07 10:51:36,268 [RecycleItems] [INFO] [item_discarded] Discarded 1x Razz Berry (maximum 20).
  2016-08-07 10:51:36,875 [TransferPokemon] [INFO] [future_pokemon_release] Releasing Charmander (CP 172/IV 0.18) based on rule: CP < 9 OR IV < 0.97
  2016-08-07 10:51:37,437 [TransferPokemon] [INFO] [pokemon_release] Exchanged Charmander [CP 172] [IV 0.18] for candy.
  2016-08-07 10:51:37,953 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Estátua Moore - 0.05km (attraction of lure 0.05km)
  2016-08-07 10:51:37,953 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort.
  2016-08-07 10:51:39,679 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Magnemite appeared! [CP 422] [Potential 0.71] [S/A/D 10/11/11]
  2016-08-07 10:51:42,526 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 35.29 (127 left)
  2016-08-07 10:51:43,728 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Magnemite! [CP 422] [Potential 0.71] [10/11/11] [+210 exp]
  2016-08-07 10:51:44,706 [PokemonCatchWorker] [INFO] [pokemon_evolve_fail] Failed to evolve Magnemite!
  2016-08-07 10:51:50,245 [       cli] [INFO] 
  2016-08-07 10:51:50,245 [       cli] [INFO] Ran for 0:01:58
  2016-08-07 10:51:50,245 [       cli] [INFO] Total XP Earned: 1450  Average: 44164.12/h
  2016-08-07 10:51:50,245 [       cli] [INFO] Travelled 0.00km
  2016-08-07 10:51:50,246 [       cli] [INFO] Visited 8 stops
  2016-08-07 10:51:50,246 [       cli] [INFO] Encountered 5 pokemon, 5 caught, 0 released, 0 evolved, 0 never seen before
  2016-08-07 10:51:50,246 [       cli] [INFO] Threw 5 poke balls
  2016-08-07 10:51:50,246 [       cli] [INFO] Earned 500 Stardust
  2016-08-07 10:51:50,246 [       cli] [INFO] 
  2016-08-07 10:51:50,246 [       cli] [INFO] Highest CP Pokemon: Machop [CP: 645] [IV: 9/15/11] Potential: 0.78 
  2016-08-07 10:51:50,246 [       cli] [INFO] Most Perfect Pokemon: Machop [CP: 645] [IV: 9/15/11] Potential: 0.78 
  Traceback (most recent call last):
    File "pokecli.py", line 499, in <module>
      main()
    File "pokecli.py", line 130, in main
      raise e
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
  ```
  
  error appears only with movetofort
  with path config no error appears 
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `pokemongo_bot/cell_workers/catch_lured_pokemon.py`
  Content:
  ```
  1 # -*- coding: utf-8 -*-
  2 from __future__ import unicode_literals
  3 
  4 from pokemongo_bot.cell_workers.utils import fort_details
  5 from pokemongo_bot.cell_workers.pokemon_catch_worker import PokemonCatchWorker
  6 from pokemongo_bot.base_task import BaseTask
  7 
  8 
  9 class CatchLuredPokemon(BaseTask):
  10     def work(self):
  11         lured_pokemon = self.get_lured_pokemon()
  12         if lured_pokemon:
  13             self.catch_pokemon(lured_pokemon)
  14 
  15     def get_lured_pokemon(self):
  16         forts = self.bot.get_forts(order_by_distance=True)
  17 
  18         if len(forts) == 0:
  19             return False
  20 
  21         fort = forts[0]
  22         details = fort_details(self.bot, fort_id=fort['id'],
  23                               latitude=fort['latitude'],
  24                               longitude=fort['longitude'])
  25         fort_name = details.get('name', 'Unknown').encode('utf8', 'replace')
  26 
  27         encounter_id = fort.get('lure_info', {}).get('encounter_id', None)
  28 
  29         if encounter_id:
  30             result = {
  31                 'encounter_id': encounter_id,
  32                 'fort_id': fort['id'],
  33                 'fort_name': fort_name,
  34                 'latitude': fort['latitude'],
  35                 'longitude': fort['longitude']
  36             }
  37 
  38             self.emit_event(
  39                 'lured_pokemon_found',
  40                 formatted='Lured pokemon at fort {fort_name} ({fort_id})',
  41                 data=result
  42             )
  43             return result
  44 
  45         return False
  46 
  47     def catch_pokemon(self, pokemon):
  48         worker = PokemonCatchWorker(pokemon, self.bot)
  49         return_value = worker.work()
  50 
  51         return return_value
  52
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/pokemongo_bot/cell_workers/catch_lured_pokemon.py b/pokemongo_bot/cell_workers/catch_lured_pokemon.py
  --- a/pokemongo_bot/cell_workers/catch_lured_pokemon.py
  +++ b/pokemongo_bot/cell_workers/catch_lured_pokemon.py
  @@ -22,7 +22,7 @@
           details = fort_details(self.bot, fort_id=fort['id'],
                                 latitude=fort['latitude'],
                                 longitude=fort['longitude'])
  -        fort_name = details.get('name', 'Unknown').encode('utf8', 'replace')
  +        fort_name = details.get('name', 'Unknown')
   
           encounter_id = fort.get('lure_info', {}).get('encounter_id', None)
   
  @@ -30,7 +30,7 @@
               result = {
                   'encounter_id': encounter_id,
                   'fort_id': fort['id'],
  -                'fort_name': fort_name,
  +                'fort_name': u"{}".format(fort_name),
                   'latitude': fort['latitude'],
                   'longitude': fort['longitude']
               }
  
verification_info: {"golden_diff": "diff --git a/pokemongo_bot/cell_workers/catch_lured_pokemon.py b/pokemongo_bot/cell_workers/catch_lured_pokemon.py\n--- a/pokemongo_bot/cell_workers/catch_lured_pokemon.py\n+++ b/pokemongo_bot/cell_workers/catch_lured_pokemon.py\n@@ -22,7 +22,7 @@\n         details = fort_details(self.bot, fort_id=fort['id'],\n                               latitude=fort['latitude'],\n                               longitude=fort['longitude'])\n-        fort_name = details.get('name', 'Unknown').encode('utf8', 'replace')\n+        fort_name = details.get('name', 'Unknown')\n \n         encounter_id = fort.get('lure_info', {}).get('encounter_id', None)\n \n@@ -30,7 +30,7 @@\n             result = {\n                 'encounter_id': encounter_id,\n                 'fort_id': fort['id'],\n-                'fort_name': fort_name,\n+                'fort_name': u\"{}\".format(fort_name),\n                 'latitude': fort['latitude'],\n                 'longitude': fort['longitude']\n             }\n", "issue": "'ascii' codec can't decode byte 0xc3\n```\n2016-08-07 10:51:36,268 [RecycleItems] [INFO] [item_discarded] Discarded 1x Razz Berry (maximum 20).\n2016-08-07 10:51:36,875 [TransferPokemon] [INFO] [future_pokemon_release] Releasing Charmander (CP 172/IV 0.18) based on rule: CP < 9 OR IV < 0.97\n2016-08-07 10:51:37,437 [TransferPokemon] [INFO] [pokemon_release] Exchanged Charmander [CP 172] [IV 0.18] for candy.\n2016-08-07 10:51:37,953 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Est\u00e1tua Moore - 0.05km (attraction of lure 0.05km)\n2016-08-07 10:51:37,953 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort.\n2016-08-07 10:51:39,679 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Magnemite appeared! [CP 422] [Potential 0.71] [S/A/D 10/11/11]\n2016-08-07 10:51:42,526 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 35.29 (127 left)\n2016-08-07 10:51:43,728 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Magnemite! [CP 422] [Potential 0.71] [10/11/11] [+210 exp]\n2016-08-07 10:51:44,706 [PokemonCatchWorker] [INFO] [pokemon_evolve_fail] Failed to evolve Magnemite!\n2016-08-07 10:51:50,245 [       cli] [INFO] \n2016-08-07 10:51:50,245 [       cli] [INFO] Ran for 0:01:58\n2016-08-07 10:51:50,245 [       cli] [INFO] Total XP Earned: 1450  Average: 44164.12/h\n2016-08-07 10:51:50,245 [       cli] [INFO] Travelled 0.00km\n2016-08-07 10:51:50,246 [       cli] [INFO] Visited 8 stops\n2016-08-07 10:51:50,246 [       cli] [INFO] Encountered 5 pokemon, 5 caught, 0 released, 0 evolved, 0 never seen before\n2016-08-07 10:51:50,246 [       cli] [INFO] Threw 5 poke balls\n2016-08-07 10:51:50,246 [       cli] [INFO] Earned 500 Stardust\n2016-08-07 10:51:50,246 [       cli] [INFO] \n2016-08-07 10:51:50,246 [       cli] [INFO] Highest CP Pokemon: Machop [CP: 645] [IV: 9/15/11] Potential: 0.78 \n2016-08-07 10:51:50,246 [       cli] [INFO] Most Perfect Pokemon: Machop [CP: 645] [IV: 9/15/11] Potential: 0.78 \nTraceback (most recent call last):\n  File \"pokecli.py\", line 499, in <module>\n    main()\n  File \"pokecli.py\", line 130, in main\n    raise e\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)\n```\n\nerror appears only with movetofort\nwith path config no error appears \n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom pokemongo_bot.cell_workers.utils import fort_details\nfrom pokemongo_bot.cell_workers.pokemon_catch_worker import PokemonCatchWorker\nfrom pokemongo_bot.base_task import BaseTask\n\n\nclass CatchLuredPokemon(BaseTask):\n    def work(self):\n        lured_pokemon = self.get_lured_pokemon()\n        if lured_pokemon:\n            self.catch_pokemon(lured_pokemon)\n\n    def get_lured_pokemon(self):\n        forts = self.bot.get_forts(order_by_distance=True)\n\n        if len(forts) == 0:\n            return False\n\n        fort = forts[0]\n        details = fort_details(self.bot, fort_id=fort['id'],\n                              latitude=fort['latitude'],\n                              longitude=fort['longitude'])\n        fort_name = details.get('name', 'Unknown').encode('utf8', 'replace')\n\n        encounter_id = fort.get('lure_info', {}).get('encounter_id', None)\n\n        if encounter_id:\n            result = {\n                'encounter_id': encounter_id,\n                'fort_id': fort['id'],\n                'fort_name': fort_name,\n                'latitude': fort['latitude'],\n                'longitude': fort['longitude']\n            }\n\n            self.emit_event(\n                'lured_pokemon_found',\n                formatted='Lured pokemon at fort {fort_name} ({fort_id})',\n                data=result\n            )\n            return result\n\n        return False\n\n    def catch_pokemon(self, pokemon):\n        worker = PokemonCatchWorker(pokemon, self.bot)\n        return_value = worker.work()\n\n        return return_value\n", "path": "pokemongo_bot/cell_workers/catch_lured_pokemon.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom pokemongo_bot.cell_workers.utils import fort_details\nfrom pokemongo_bot.cell_workers.pokemon_catch_worker import PokemonCatchWorker\nfrom pokemongo_bot.base_task import BaseTask\n\n\nclass CatchLuredPokemon(BaseTask):\n    def work(self):\n        lured_pokemon = self.get_lured_pokemon()\n        if lured_pokemon:\n            self.catch_pokemon(lured_pokemon)\n\n    def get_lured_pokemon(self):\n        forts = self.bot.get_forts(order_by_distance=True)\n\n        if len(forts) == 0:\n            return False\n\n        fort = forts[0]\n        details = fort_details(self.bot, fort_id=fort['id'],\n                              latitude=fort['latitude'],\n                              longitude=fort['longitude'])\n        fort_name = details.get('name', 'Unknown')\n\n        encounter_id = fort.get('lure_info', {}).get('encounter_id', None)\n\n        if encounter_id:\n            result = {\n                'encounter_id': encounter_id,\n                'fort_id': fort['id'],\n                'fort_name': u\"{}\".format(fort_name),\n                'latitude': fort['latitude'],\n                'longitude': fort['longitude']\n            }\n\n            self.emit_event(\n                'lured_pokemon_found',\n                formatted='Lured pokemon at fort {fort_name} ({fort_id})',\n                data=result\n            )\n            return result\n\n        return False\n\n    def catch_pokemon(self, pokemon):\n        worker = PokemonCatchWorker(pokemon, self.bot)\n        return_value = worker.work()\n\n        return return_value\n", "path": "pokemongo_bot/cell_workers/catch_lured_pokemon.py"}]}