Improved the redis uri sanitization checks and properly handle invalid
flags