fix handling of special characters when using Python 3
fix handling of special characters when using Python 3

aleksandaratanasov/catkin_pkg,davetcoleman/catkin_pkg,harmishhk/catkin_pkg,ipa-mdl/catkin_pkg