Make strings url safe within angular