Fixing malformed URL errors in HHVM