fixes for extra characters in logging target names