Fix URL construction in some methods. Closes #6.