Cleaning up PHP example, removing unnecessary url safe replacement in favor of standard url encoding