[utils] Add `get_subprocess_encoding` and filename/argument decode counterparts