Fix bug escaping space chars for signatures