Which mode should I use?
Component — for a single query value, path segment, or any string that must become “fully” escaped. Full URL — when you need to encode a mostly valid URL but fix unsafe characters in the path or query without breaking :// and delimiters.
Decoding must use the matching mode, or you may get a URI error.