Fix URL regex issue based on Brakeman warning