Pre-process drupal_goto or use hook_exit to stop redirect
This is most often caused by UTF-8 with BOM. Check your editor and change the file format if it is.

The only way to redirect in hook_exit() is another drupal_goto(). Be careful that you don't create redirection loops.