Minor update to ros_configure script to handle some cases when ROS forgets to use UTF-8 encoding.