Motor shaft attachment.

Or you could use a bushing. That would be the best method. Filling and drilling can result in enough off-center error to cause serious problems. What are your motor shaft OD and encoder ID?