Improve data to key conversion functions (fixes #33)