While the process of converting songs to different file formats isn't something officially supported by the developers, it's still perfectly legal. So long as you actually own the WAV files you're using to play in-game, you don't need to worry about anything.