The charges of a twisted brane