I ended up just creating an if statement to check if the filename contains filename=
if( contains(outputs('HTTP')['headers']?['Content-Disposition'],'filename='), # Check split(outputs('HTTP')['headers']?['Content-Disposition'],'"')[1], # No special character decodeuricomponent(split(outputs('HTTP')['headers']?['Content-Disposition'],'''''')[1]) # Special character (UTF-8))