added '_' as a safe character for uri_encode()