Fixed compatibility issues caused by different http_build_query default behavior across PHP versions