Except as provided in section 512 of this title, all fees under this chapter shall be paid in advance. These fees do not include the stamp tax.