The master of a vessel may procure all its necessary repairs and supplies, may engage cargo and passengers for carriage, and, in a foreign port, may enter into a charter-party. His contracts for these purposes bind the owner to the full amount of the value of the vessel and freightage.