convert # to query params