Ensure URL used for oauth header is absolute

Fixes #356.