OSDCap.cc: fix unquote '-' and '_' in pool names

Fix pool names to not replace '-' and '_' by '\0'. Use char_(''_) instead of '_'.

Fixes: #4122

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>