Don't worry about the
doubleplusgoodthinking folks who would place legality over morality or ethics, even when the laws are immoral or stupid. If anything at all, history proves that immoral and stupid laws can only be brought down and eventually abolished when thinking folks refuse to comply with them. The same goes for laws which try to prevent sharing among friends (which the
doubleplusgoodthinking party members refer to as
murder, assault and grand theft on the high seas).
To answer your question, I would convert the books you have to an open, transparent format (like FB2) which allows you to see exactly what is in the file you want to share.
Don't be discouraged by some of the reactions here. That is to be expected. I assure you that
all of the self-righteous folks who preach compliance with immoral laws also have their copied books, mp3 files, movies, etc
Lastly, resistance is not futile - just check out
these folks. There are "pirate" parties formed all over the world and, sooner or later, these stupid and immoral laws will go the way of all stupid and immoral laws.

You can find a primer on this important topic
here and
here.
Bottom line: don't ever let the greed of some prevent you from doing the right thing!
Cheers!
Farhad