Re: 404 Error
Great! Glad it works!
FYI, since wp_redirect() is a pluggable function, you could probably just recreate the function with your mod and create a small plugin for it! That way you won’t have to hack the WP core.
*Edit – Here’s the fix bundled into a quick plugin:
http://buddypress.pastebin.com/download.php?i=S8e3t2Se (updated July 24th, forgot to wrap a !function_exists call around the function)
Save as a PHP file and add it to /wp-content/mu-plugins/ or add it to the regular plugins directory and activate network-wide.